﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace RibbonEditor.Actions
{
    class ActionHelper
    {
        public static IAction GetIActionFromXml(XmlNode node)
        {
            if (node.Name == "Url")
            {
                return new Url(node);
            }
            else
            {
                return new JavaScriptFunction(node);
            }
        }
    }
}
